.class public Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;
.super Landroid/widget/FrameLayout;
.source "ImageContainer.java"


# instance fields
.field a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

.field b:Landroid/view/View;

.field c:Landroid/view/View;

.field private d:Les/hj;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0
    .param p1    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0
    .param p1    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Landroid/util/AttributeSet;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 2
    invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0
    .param p1    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Landroid/util/AttributeSet;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
    .locals 0
    .param p1    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Landroid/util/AttributeSet;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/RequiresApi;
        api = 0x15
    .end annotation

    .line 4
    invoke-direct {p0, p1, p2, p3, p4}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V

    return-void
.end method

.method private a(Landroid/view/View;I)V
    .locals 0

    if-eqz p1, :cond_0

    .line 14
    invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V

    :cond_0
    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->d:Les/hj;

    if-eqz v0, :cond_0

    .line 8
    invoke-virtual {v0}, Les/hj;->start()V

    :cond_0
    return-void
.end method

.method public a(Les/cm;)V
    .locals 3

    .line 9
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "load-error::"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {p1}, Les/cm;->i()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getTag()Ljava/lang/Object;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 10
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    const/16 v2, 0x8

    invoke-direct {p0, v0, v2}, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a(Landroid/view/View;I)V

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->b:Landroid/view/View;

    invoke-direct {p0, v0, v2}, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a(Landroid/view/View;I)V

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->c:Landroid/view/View;

    const/4 v2, 0x0

    invoke-direct {p0, v0, v2}, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a(Landroid/view/View;I)V

    .line 13
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {p1}, Les/cm;->i()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->setTag(Ljava/lang/Object;)V

    return-void
.end method

.method public a(Les/cm;Landroid/graphics/Bitmap;)V
    .locals 2

    .line 6
    new-instance v0, Lcom/estrongs/android/pop/app/imageviewer/h;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;->getBitmapRotation()I

    move-result v1

    invoke-direct {v0, p2, v1}, Lcom/estrongs/android/pop/app/imageviewer/h;-><init>(Landroid/graphics/Bitmap;I)V

    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a(Les/cm;Lcom/estrongs/android/pop/app/imageviewer/h;)V

    return-void
.end method

.method public a(Les/cm;Lcom/estrongs/android/pop/app/imageviewer/h;)V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a(Landroid/view/View;I)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->b:Landroid/view/View;

    const/16 v2, 0x8

    invoke-direct {p0, v0, v2}, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a(Landroid/view/View;I)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->c:Landroid/view/View;

    invoke-direct {p0, v0, v2}, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a(Landroid/view/View;I)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    invoke-virtual {v0, p2, v1}, Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;->a(Lcom/estrongs/android/pop/app/imageviewer/h;Z)V

    .line 5
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "load-sucess::"

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {p1}, Les/cm;->i()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->setTag(Ljava/lang/Object;)V

    return-void
.end method

.method public b()V
    .locals 1

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->d:Les/hj;

    if-eqz v0, :cond_0

    .line 9
    invoke-virtual {v0}, Les/hj;->stop()V

    :cond_0
    return-void
.end method

.method public b(Les/cm;)V
    .locals 4

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "load-progress::"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {p1}, Les/cm;->i()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getTag()Ljava/lang/Object;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    const/16 v2, 0x8

    invoke-direct {p0, v0, v2}, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a(Landroid/view/View;I)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->b:Landroid/view/View;

    const/4 v3, 0x0

    invoke-direct {p0, v0, v3}, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a(Landroid/view/View;I)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->c:Landroid/view/View;

    invoke-direct {p0, v0, v2}, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a(Landroid/view/View;I)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->b:Landroid/view/View;

    const v2, 0x7f0907bc

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    if-eqz v0, :cond_1

    .line 6
    invoke-interface {p1}, Les/cm;->i()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 7
    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {p1}, Les/cm;->i()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->setTag(Ljava/lang/Object;)V

    return-void
.end method

.method protected onFinishInflate()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroid/widget/FrameLayout;->onFinishInflate()V

    const v0, 0x7f09053a

    .line 2
    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    const v0, 0x7f090535

    .line 3
    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->b:Landroid/view/View;

    const v0, 0x7f090534

    .line 4
    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->c:Landroid/view/View;

    return-void
.end method

.method public setGifPlayer(Les/hj;)V
    .locals 0
    .param p1    # Les/hj;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->b()V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/pop/app/imageviewer/ImageContainer;->d:Les/hj;

    return-void
.end method
